﻿namespace CKQDJK {
	using System;
	using SuperORM.Attributes;
	using System.ComponentModel;
	
	
	/// <summary>采矿权价款</summary>
	[Object("采矿权价款", "CKQDJK", "采矿权价款")]
	[Browsable(true)]
	[DisplayName("采矿权价款")]
	[ReadOnly(false)]
	[Serializable()]
	public class 采矿权价款 : SuperORM.BusinessObject {
		
		/// <summary>内部变量：CK_GUID</summary>
		private string m_CK_GUID;
		
		/// <summary>标示属性CK_GUID是否为空的字段。</summary>
		private bool m_IsCK_GUIDNull = true;
		
		/// <summary>内部变量：项目档案号</summary>
		private string m_项目档案号;
		
		/// <summary>标示属性项目档案号是否为空的字段。</summary>
		private bool m_Is项目档案号Null = true;
		
		/// <summary>内部变量：许可证号</summary>
		private string m_许可证号;
		
		/// <summary>标示属性许可证号是否为空的字段。</summary>
		private bool m_Is许可证号Null = true;
		
		/// <summary>内部变量：签发时间</summary>
		private System.DateTime m_签发时间;
		
		/// <summary>标示属性签发时间是否为空的字段。</summary>
		private bool m_Is签发时间Null = true;
		
		/// <summary>内部变量：矿山名称</summary>
		private string m_矿山名称;
		
		/// <summary>标示属性矿山名称是否为空的字段。</summary>
		private bool m_Is矿山名称Null = true;
		
		/// <summary>内部变量：采矿权人</summary>
		private string m_采矿权人;
		
		/// <summary>标示属性采矿权人是否为空的字段。</summary>
		private bool m_Is采矿权人Null = true;
		
		/// <summary>内部变量：价款处置方式</summary>
		private string m_价款处置方式;
		
		/// <summary>标示属性价款处置方式是否为空的字段。</summary>
		private bool m_Is价款处置方式Null = true;
		
		/// <summary>内部变量：价款处置方式代码</summary>
		private int m_价款处置方式代码;
		
		/// <summary>标示属性价款处置方式代码是否为空的字段。</summary>
		private bool m_Is价款处置方式代码Null = true;
		
		/// <summary>内部变量：总价款</summary>
		private double m_总价款;
		
		/// <summary>标示属性总价款是否为空的字段。</summary>
		private bool m_Is总价款Null = true;
		
		/// <summary>内部变量：已缴金额</summary>
		private double m_已缴金额;
		
		/// <summary>标示属性已缴金额是否为空的字段。</summary>
		private bool m_Is已缴金额Null = true;
		
		/// <summary>内部变量：备注</summary>
		private string m_备注;
		
		/// <summary>标示属性备注是否为空的字段。</summary>
		private bool m_Is备注Null = true;
		
		/// <summary>内部变量：批准文号</summary>
		private string m_批准文号;
		
		/// <summary>标示属性批准文号是否为空的字段。</summary>
		private bool m_Is批准文号Null = true;
		
		/// <summary>内部变量：批准日期</summary>
		private System.DateTime m_批准日期;
		
		/// <summary>标示属性批准日期是否为空的字段。</summary>
		private bool m_Is批准日期Null = true;
		
		/// <summary>内部变量：缴纳日期</summary>
		private System.DateTime m_缴纳日期;
		
		/// <summary>标示属性缴纳日期是否为空的字段。</summary>
		private bool m_Is缴纳日期Null = true;
		
		/// <summary>内部变量：总期数</summary>
		private int m_总期数;
		
		/// <summary>标示属性总期数是否为空的字段。</summary>
		private bool m_Is总期数Null = true;
		
		/// <summary>内部变量：折股金额</summary>
		private double m_折股金额;
		
		/// <summary>标示属性折股金额是否为空的字段。</summary>
		private bool m_Is折股金额Null = true;
		
		/// <summary>内部变量：未折股价款</summary>
		private double m_未折股价款;
		
		/// <summary>标示属性未折股价款是否为空的字段。</summary>
		private bool m_Is未折股价款Null = true;
		
		/// <summary>内部变量：批准转增金额</summary>
		private double m_批准转增金额;
		
		/// <summary>标示属性批准转增金额是否为空的字段。</summary>
		private bool m_Is批准转增金额Null = true;
		
		/// <summary>内部变量：实缴金额</summary>
		private float m_实缴金额;
		
		/// <summary>标示属性实缴金额是否为空的字段。</summary>
		private bool m_Is实缴金额Null = true;
		
		/// <summary>内部变量：减免金额</summary>
		private double m_减免金额;
		
		/// <summary>标示属性减免金额是否为空的字段。</summary>
		private bool m_Is减免金额Null = true;
		
		/// <summary>内部变量：滞纳金</summary>
		private double m_滞纳金;
		
		/// <summary>标示属性滞纳金是否为空的字段。</summary>
		private bool m_Is滞纳金Null = true;
		
		/// <summary>内部变量：资金占用费</summary>
		private double m_资金占用费;
		
		/// <summary>标示属性资金占用费是否为空的字段。</summary>
		private bool m_Is资金占用费Null = true;
		
		/// <summary>内部变量：DJ_CK_GUID</summary>
		private string m_DJ_CK_GUID;
		
		/// <summary>标示属性DJ_CK_GUID是否为空的字段。</summary>
		private bool m_IsDJ_CK_GUIDNull = true;
		
		/// <summary>内部变量：BSM</summary>
		private int m_BSM;
		
		/// <summary>标示属性BSM是否为空的字段。</summary>
		private bool m_IsBSMNull = true;
		
		public static string TypeID = "CKQDJK.采矿权价款";
		
		/// <summary>属性CK_GUID</summary>
		[Member("CK_GUID", "CK_GUID", "System.String", 80, false, false, "CK_GUID")]
		[Browsable(true)]
		[DisplayName("CK_GUID")]
		[ReadOnly(false)]
		public string CK_GUID {
			get {
				return this.m_CK_GUID;
			}
			set {
				this.m_CK_GUID = value;
				this.m_IsCK_GUIDNull = false;
			}
		}
		
		/// <summary>属性项目档案号</summary>
		[Member("项目档案号", "项目档案号", "System.String", 50, false, false, "项目档案号")]
		[Browsable(true)]
		[DisplayName("项目档案号")]
		[ReadOnly(false)]
		public string 项目档案号 {
			get {
				return this.m_项目档案号;
			}
			set {
				this.m_项目档案号 = value;
				this.m_Is项目档案号Null = false;
			}
		}
		
		/// <summary>属性许可证号</summary>
		[Member("许可证号", "许可证号", "System.String", 50, false, false, "许可证号")]
		[Browsable(true)]
		[DisplayName("许可证号")]
		[ReadOnly(false)]
		public string 许可证号 {
			get {
				return this.m_许可证号;
			}
			set {
				this.m_许可证号 = value;
				this.m_Is许可证号Null = false;
			}
		}
		
		/// <summary>属性签发时间</summary>
		[Member("签发时间", "签发时间", "System.DateTime", 8, false, false, "签发时间")]
		[Browsable(true)]
		[DisplayName("签发时间")]
		[ReadOnly(false)]
		public System.DateTime 签发时间 {
			get {
				return this.m_签发时间;
			}
			set {
				this.m_签发时间 = value;
				this.m_Is签发时间Null = false;
			}
		}
		
		/// <summary>属性矿山名称</summary>
		[Member("矿山名称", "矿山名称", "System.String", 200, false, false, "矿山名称")]
		[Browsable(true)]
		[DisplayName("矿山名称")]
		[ReadOnly(false)]
		public string 矿山名称 {
			get {
				return this.m_矿山名称;
			}
			set {
				this.m_矿山名称 = value;
				this.m_Is矿山名称Null = false;
			}
		}
		
		/// <summary>属性采矿权人</summary>
		[Member("采矿权人", "采矿权人", "System.String", 200, false, false, "采矿权人")]
		[Browsable(true)]
		[DisplayName("采矿权人")]
		[ReadOnly(false)]
		public string 采矿权人 {
			get {
				return this.m_采矿权人;
			}
			set {
				this.m_采矿权人 = value;
				this.m_Is采矿权人Null = false;
			}
		}
		
		/// <summary>属性价款处置方式</summary>
		[Member("价款处置方式", "价款处置方式", "System.String", 100, false, false, "价款处置方式")]
		[Browsable(true)]
		[DisplayName("价款处置方式")]
		[ReadOnly(false)]
		public string 价款处置方式 {
			get {
				return this.m_价款处置方式;
			}
			set {
				this.m_价款处置方式 = value;
				this.m_Is价款处置方式Null = false;
			}
		}
		
		/// <summary>属性价款处置方式代码</summary>
		[Member("价款处置方式代码", "价款处置方式代码", "System.Int32", 4, false, false, "价款处置方式代码")]
		[Browsable(true)]
		[DisplayName("价款处置方式代码")]
		[ReadOnly(false)]
		public int 价款处置方式代码 {
			get {
				return this.m_价款处置方式代码;
			}
			set {
				this.m_价款处置方式代码 = value;
				this.m_Is价款处置方式代码Null = false;
			}
		}
		
		/// <summary>属性总价款</summary>
		[Member("总价款", "总价款", "System.Double", 8, false, false, "总价款")]
		[Browsable(true)]
		[DisplayName("总价款")]
		[ReadOnly(false)]
		public double 总价款 {
			get {
				return this.m_总价款;
			}
			set {
				this.m_总价款 = value;
				this.m_Is总价款Null = false;
			}
		}
		
		/// <summary>属性已缴金额</summary>
		[Member("已缴金额", "已缴金额", "System.Double", 8, false, false, "已缴金额")]
		[Browsable(true)]
		[DisplayName("已缴金额")]
		[ReadOnly(false)]
		public double 已缴金额 {
			get {
				return this.m_已缴金额;
			}
			set {
				this.m_已缴金额 = value;
				this.m_Is已缴金额Null = false;
			}
		}
		
		/// <summary>属性备注</summary>
		[Member("备注", "备注", "System.String", 510, false, false, "备注")]
		[Browsable(true)]
		[DisplayName("备注")]
		[ReadOnly(false)]
		public string 备注 {
			get {
				return this.m_备注;
			}
			set {
				this.m_备注 = value;
				this.m_Is备注Null = false;
			}
		}
		
		/// <summary>属性批准文号</summary>
		[Member("批准文号", "批准文号", "System.String", 160, false, false, "批准文号")]
		[Browsable(true)]
		[DisplayName("批准文号")]
		[ReadOnly(false)]
		public string 批准文号 {
			get {
				return this.m_批准文号;
			}
			set {
				this.m_批准文号 = value;
				this.m_Is批准文号Null = false;
			}
		}
		
		/// <summary>属性批准日期</summary>
		[Member("批准日期", "批准日期", "System.DateTime", 8, false, false, "批准日期")]
		[Browsable(true)]
		[DisplayName("批准日期")]
		[ReadOnly(false)]
		public System.DateTime 批准日期 {
			get {
				return this.m_批准日期;
			}
			set {
				this.m_批准日期 = value;
				this.m_Is批准日期Null = false;
			}
		}
		
		/// <summary>属性缴纳日期</summary>
		[Member("缴纳日期", "缴纳日期", "System.DateTime", 8, false, false, "缴纳日期")]
		[Browsable(true)]
		[DisplayName("缴纳日期")]
		[ReadOnly(false)]
		public System.DateTime 缴纳日期 {
			get {
				return this.m_缴纳日期;
			}
			set {
				this.m_缴纳日期 = value;
				this.m_Is缴纳日期Null = false;
			}
		}
		
		/// <summary>属性总期数</summary>
		[Member("总期数", "总期数", "System.Int32", 4, false, false, "总期数")]
		[Browsable(true)]
		[DisplayName("总期数")]
		[ReadOnly(false)]
		public int 总期数 {
			get {
				return this.m_总期数;
			}
			set {
				this.m_总期数 = value;
				this.m_Is总期数Null = false;
			}
		}
		
		/// <summary>属性折股金额</summary>
		[Member("折股金额", "折股金额", "System.Double", 8, false, false, "折股金额")]
		[Browsable(true)]
		[DisplayName("折股金额")]
		[ReadOnly(false)]
		public double 折股金额 {
			get {
				return this.m_折股金额;
			}
			set {
				this.m_折股金额 = value;
				this.m_Is折股金额Null = false;
			}
		}
		
		/// <summary>属性未折股价款</summary>
		[Member("未折股价款", "未折股价款", "System.Double", 8, false, false, "未折股价款")]
		[Browsable(true)]
		[DisplayName("未折股价款")]
		[ReadOnly(false)]
		public double 未折股价款 {
			get {
				return this.m_未折股价款;
			}
			set {
				this.m_未折股价款 = value;
				this.m_Is未折股价款Null = false;
			}
		}
		
		/// <summary>属性批准转增金额</summary>
		[Member("批准转增金额", "批准转增金额", "System.Double", 8, false, false, "批准转增金额")]
		[Browsable(true)]
		[DisplayName("批准转增金额")]
		[ReadOnly(false)]
		public double 批准转增金额 {
			get {
				return this.m_批准转增金额;
			}
			set {
				this.m_批准转增金额 = value;
				this.m_Is批准转增金额Null = false;
			}
		}
		
		/// <summary>属性实缴金额</summary>
		[Member("实缴金额", "实缴金额", "System.Single", 4, false, false, "实缴金额")]
		[Browsable(true)]
		[DisplayName("实缴金额")]
		[ReadOnly(false)]
		public float 实缴金额 {
			get {
				return this.m_实缴金额;
			}
			set {
				this.m_实缴金额 = value;
				this.m_Is实缴金额Null = false;
			}
		}
		
		/// <summary>属性减免金额</summary>
		[Member("减免金额", "减免金额", "System.Double", 8, false, false, "减免金额")]
		[Browsable(true)]
		[DisplayName("减免金额")]
		[ReadOnly(false)]
		public double 减免金额 {
			get {
				return this.m_减免金额;
			}
			set {
				this.m_减免金额 = value;
				this.m_Is减免金额Null = false;
			}
		}
		
		/// <summary>属性滞纳金</summary>
		[Member("滞纳金", "滞纳金", "System.Double", 8, false, false, "滞纳金")]
		[Browsable(true)]
		[DisplayName("滞纳金")]
		[ReadOnly(false)]
		public double 滞纳金 {
			get {
				return this.m_滞纳金;
			}
			set {
				this.m_滞纳金 = value;
				this.m_Is滞纳金Null = false;
			}
		}
		
		/// <summary>属性资金占用费</summary>
		[Member("资金占用费", "资金占用费", "System.Double", 8, false, false, "资金占用费")]
		[Browsable(true)]
		[DisplayName("资金占用费")]
		[ReadOnly(false)]
		public double 资金占用费 {
			get {
				return this.m_资金占用费;
			}
			set {
				this.m_资金占用费 = value;
				this.m_Is资金占用费Null = false;
			}
		}
		
		/// <summary>属性DJ_CK_GUID</summary>
		[Member("DJ_CK_GUID", "DJ_CK_GUID", "System.String", 100, false, false, "DJ_CK_GUID")]
		[Browsable(true)]
		[DisplayName("DJ_CK_GUID")]
		[ReadOnly(false)]
		public string DJ_CK_GUID {
			get {
				return this.m_DJ_CK_GUID;
			}
			set {
				this.m_DJ_CK_GUID = value;
				this.m_IsDJ_CK_GUIDNull = false;
			}
		}
		
		/// <summary>属性BSM</summary>
		[Member("BSM", "BSM", true, true, "BSM")]
		[Browsable(true)]
		[DisplayName("BSM")]
		[ReadOnly(false)]
		public int BSM {
			get {
				return this.m_BSM;
			}
			set {
				this.m_BSM = value;
				this.m_IsBSMNull = false;
				if ((this.OnOIDChanged != null)) {
					this.OnOIDChanged(this, null);
				}
			}
		}
		
		/// <summary>对象ID发生变化的时候触发的事件</summary>
		public event SuperORM.Attributes.OIDChangedHandler OnOIDChanged;
		
		/// <summary>属性改变的时候</summary>
		public event SuperORM.PropertyChangeHandler PropertyChanged;
		
		// 重载的方法，判断两个对象是否相等，判断条件是两个对象的主键值是否相等。
		public override bool Equals(object obj) {
			采矿权价款 采矿权价款 = ((采矿权价款)(obj));
			if ((采矿权价款.BSM == this.m_BSM)) {
				return true;
			}
			else {
				return false;
			}
		}
		
		/// <summary>判断某一个属性是否为空</summary>
		public override bool IsNull(string propname) {
			if (propname.Equals("CK_GUID")) {
				return this.m_IsCK_GUIDNull;
			}
			if (propname.Equals("项目档案号")) {
				return this.m_Is项目档案号Null;
			}
			if (propname.Equals("许可证号")) {
				return this.m_Is许可证号Null;
			}
			if (propname.Equals("签发时间")) {
				return this.m_Is签发时间Null;
			}
			if (propname.Equals("矿山名称")) {
				return this.m_Is矿山名称Null;
			}
			if (propname.Equals("采矿权人")) {
				return this.m_Is采矿权人Null;
			}
			if (propname.Equals("价款处置方式")) {
				return this.m_Is价款处置方式Null;
			}
			if (propname.Equals("价款处置方式代码")) {
				return this.m_Is价款处置方式代码Null;
			}
			if (propname.Equals("总价款")) {
				return this.m_Is总价款Null;
			}
			if (propname.Equals("已缴金额")) {
				return this.m_Is已缴金额Null;
			}
			if (propname.Equals("备注")) {
				return this.m_Is备注Null;
			}
			if (propname.Equals("批准文号")) {
				return this.m_Is批准文号Null;
			}
			if (propname.Equals("批准日期")) {
				return this.m_Is批准日期Null;
			}
			if (propname.Equals("缴纳日期")) {
				return this.m_Is缴纳日期Null;
			}
			if (propname.Equals("总期数")) {
				return this.m_Is总期数Null;
			}
			if (propname.Equals("折股金额")) {
				return this.m_Is折股金额Null;
			}
			if (propname.Equals("未折股价款")) {
				return this.m_Is未折股价款Null;
			}
			if (propname.Equals("批准转增金额")) {
				return this.m_Is批准转增金额Null;
			}
			if (propname.Equals("实缴金额")) {
				return this.m_Is实缴金额Null;
			}
			if (propname.Equals("减免金额")) {
				return this.m_Is减免金额Null;
			}
			if (propname.Equals("滞纳金")) {
				return this.m_Is滞纳金Null;
			}
			if (propname.Equals("资金占用费")) {
				return this.m_Is资金占用费Null;
			}
			if (propname.Equals("DJ_CK_GUID")) {
				return this.m_IsDJ_CK_GUIDNull;
			}
			if (propname.Equals("BSM")) {
				return this.m_IsBSMNull;
			}
			return true;
		}
		
		/// <summary>将某个属性设置为空</summary>
		public override void SetNull(string propname) {
			if (propname.Equals("CK_GUID")) {
				this.m_IsCK_GUIDNull = true;
				return;
			}
			if (propname.Equals("项目档案号")) {
				this.m_Is项目档案号Null = true;
				return;
			}
			if (propname.Equals("许可证号")) {
				this.m_Is许可证号Null = true;
				return;
			}
			if (propname.Equals("签发时间")) {
				this.m_Is签发时间Null = true;
				return;
			}
			if (propname.Equals("矿山名称")) {
				this.m_Is矿山名称Null = true;
				return;
			}
			if (propname.Equals("采矿权人")) {
				this.m_Is采矿权人Null = true;
				return;
			}
			if (propname.Equals("价款处置方式")) {
				this.m_Is价款处置方式Null = true;
				return;
			}
			if (propname.Equals("价款处置方式代码")) {
				this.m_Is价款处置方式代码Null = true;
				return;
			}
			if (propname.Equals("总价款")) {
				this.m_Is总价款Null = true;
				return;
			}
			if (propname.Equals("已缴金额")) {
				this.m_Is已缴金额Null = true;
				return;
			}
			if (propname.Equals("备注")) {
				this.m_Is备注Null = true;
				return;
			}
			if (propname.Equals("批准文号")) {
				this.m_Is批准文号Null = true;
				return;
			}
			if (propname.Equals("批准日期")) {
				this.m_Is批准日期Null = true;
				return;
			}
			if (propname.Equals("缴纳日期")) {
				this.m_Is缴纳日期Null = true;
				return;
			}
			if (propname.Equals("总期数")) {
				this.m_Is总期数Null = true;
				return;
			}
			if (propname.Equals("折股金额")) {
				this.m_Is折股金额Null = true;
				return;
			}
			if (propname.Equals("未折股价款")) {
				this.m_Is未折股价款Null = true;
				return;
			}
			if (propname.Equals("批准转增金额")) {
				this.m_Is批准转增金额Null = true;
				return;
			}
			if (propname.Equals("实缴金额")) {
				this.m_Is实缴金额Null = true;
				return;
			}
			if (propname.Equals("减免金额")) {
				this.m_Is减免金额Null = true;
				return;
			}
			if (propname.Equals("滞纳金")) {
				this.m_Is滞纳金Null = true;
				return;
			}
			if (propname.Equals("资金占用费")) {
				this.m_Is资金占用费Null = true;
				return;
			}
			if (propname.Equals("DJ_CK_GUID")) {
				this.m_IsDJ_CK_GUIDNull = true;
				return;
			}
			if (propname.Equals("BSM")) {
				this.m_IsBSMNull = true;
				return;
			}
		}
	}
}
